import axios from '@/utils/request'
const base = '/operation'

export function listLuckyMoney(params) {
  return axios({
    url: `${base}/luckyMoney`,
    method: 'get',
    params: params
  })
}

export function returnMoneySwitch(onOff) {
  return axios({
    url: `${base}/luckyMoney/returnMoney/` + onOff,
    method: 'put'
  })
}

export function loadReturnMoneySwitch() {
  return axios({
    url: `${base}/luckyMoney/returnMoney`,
    method: 'get'
  })
}

export function previewReturnMoney() {
  return axios({
    url: `${base}/playRecords/previewReturnMoney`,
    method: 'get'
  })
}
